package com.kaiwukj.android.ufamily.mvp.http.entity.result;

import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseBean;

/**
 * 装修预约订单
 */
public class GMAppointmentOrderResult extends BaseBean {
    /**
     * "id": 11,
     * "appointmentType": 1,
     * "floorage": 100,
     * "contacts": "李云龙",
     * "address": "恒茂梦时代7号楼909",
     * "phone": "15949581550",
     * "appointmentTime": "2020-07-14 09:43:37"
     */

    private Integer id;
    private Integer appointmentType;//预约类型 1：新房装修 2：旧房改造 3：免费报价 4：免费设计
    private Float floorage;//建筑面积，单位：平方米
    private String contacts;
    private String address;
    private String phone;
    private String appointmentTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAppointmentType() {
        return appointmentType == null ? 0 : appointmentType;
    }

    public void setAppointmentType(Integer appointmentType) {
        this.appointmentType = appointmentType;
    }

    public String getAppointmentTypeStr() {
        if (getAppointmentType() == 1) return "新房装修";
        else if (getAppointmentType() == 2) return "旧房改造";
        else if (getAppointmentType() == 3) return "免费报价";
        else if (getAppointmentType() == 4) return "免费设计";
        return "未知类型";
    }

    public Float getFloorage() {
        return floorage;
    }

    public void setFloorage(Float floorage) {
        this.floorage = floorage;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAppointmentTime() {
        return appointmentTime == null ? "" : appointmentTime;
    }

    public void setAppointmentTime(String appointmentTime) {
        this.appointmentTime = appointmentTime;
    }
}
